
const state = {
    winSize: {
        height: 1080,
        width: 1920
    },
    runningStep: 0
}

const mutations = {
    SET_WIN_SIZE: (state, size) => {
        state.winSize = size
    },
    SET_RUNNING_STEP: (state, step) => {
        state.runningStep = step
    }
}

const actions = {
    setWinSize({ commit }, size) {
        commit('SET_WIN_SIZE', size)
    },
    setRunningStep({ commit }, step){
        commit('SET_RUNNING_STEP', step)
    }
}

export default {
    namespaced: true,
    state,
    mutations,
    actions
}
